package com.jason.www.timer;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * Created by Cai on 2018/6/21.
 */
@Component
public class MyQuartzTest {

    //@Scheduled(cron = "0/5 * * * * ?")
    public void timeJob(){
        System.out.println("Quartz定时器被调用:" + new Date());
    }
}
